<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ace="http://www.icefaces.org/icefaces/components"
      xmlns:ice="http://www.icesoft.com/icefaces/component">

    <ui:composition template="/template.xhtml">
        <ui:define name="right">
            <br></br><ui:include src="/front/usuario/login.xhtml" />
            <br></br><ui:include src="/modulos/seleccionarPlantilla.xhtml"/>
            <ui:include src="/front/carrito/linkCarrito.xhtml"/>
        </ui:define>
        
        <ui:define name="left">
            <ui:include src="/modulos/frontLeft.xhtml" />    
        </ui:define>
        
        <ui:define name="content">

            <ice:form id="formInicio">                
                <c:if test="#{mbPlantilla.plantilla.equals('zara')}">
                    <div align="center">
                        <img id="imagenInicio" src="./imagenes/fondo/ECF_2.png" width="600" height="600" alt="modelo1"/>
                        
                    </div>
                </c:if>
                <c:if test="#{mbPlantilla.plantilla.equals('alcampo')}">
                    <ace:dataTable id="tablaProd" value="#{mbListProd.mostrarPorductosTodos()}" var="var"
                                   paginator="true" paginatorPosition="bottom" rows="1" >
                        <ace:column headerText="">
                            <ice:commandLink action="#{mbListProd.mostrarProducto(var.id,'/front/productos/lista')}"><img src="#{var.imagen}" /></ice:commandLink>
                        </ace:column>
                    </ace:dataTable>
                </c:if> 
            </ice:form>
        </ui:define>
    </ui:composition>
</html>

